package com.tyf.bookreader.service;

import com.tyf.bookreader.dto.CommentDTO;
import com.tyf.bookreader.dto.PageRespDto;
import com.tyf.bookreader.vo.CommentPageVo;
import com.tyf.bookreader.component.Result;

import java.util.List;

/**
 * @Description 评论业务
 * @Author shallow
 * @Date 2023/4/3 16:58
 */
public interface CommentService {


    Result<PageRespDto<CommentDTO>> getAllCommentByBookId(CommentPageVo commentPageVo);

    Result<List<CommentDTO>> getHotCommentsById(Long bookId);

    Result<PageRespDto<CommentDTO>> getChildComment(CommentPageVo commentPageVo);

    Result saveCommentLike(Long commentId);
}
